import request from './request';

export const taskApi = {
  getTaskList: () => {
    return request.get('/task/members_period_tasks');
  },

  getAverageScore: (params) => {
    return request.get('/task/average_score', params);
  },

  getAssigneeList: () => {
    return request.get('/task/get_assignee_list');
  },

  createTask: (params) => {
    return request.post('/task/create_task', params);
  },

  getTaskListByUser: (params) => {
    return request.get('/task/period_tasks', params);
  },

  getTaskDetail: (params) => {
    return request.get('/task/get_found_period_tasks', params);
  },

  getDailyTaskProgressReport: () => {
    return request.get('/daily/task_progress_report');
  }
};
